package com.jinzhi.jzweb.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.CoreService;
import com.jinzhi.common.utils.Result;
import com.jinzhi.jzweb.domain.FamousTeacherDO;
import com.jinzhi.jzweb.pojo.FamousTeacherVO;

import java.util.List;

/***
 * @author C
 * @Date 2023/12/6
 * @Description: TODO
 * @Version 1.0
 */
public interface FamousTeacherService extends CoreService<FamousTeacherDO> {

    /**
     * 条件分页
     */
    Result getPage(int pageNum, int pageSize, FamousTeacherVO famousTeacherVO);

    /**
     * 根据id查询
     */
    FamousTeacherDO getById(Long id);


    /**
     * 新增
     */
    void insertFamousTeacher(FamousTeacherVO famousTeacherVO);

    /**
     * 修改
     * @param famousTeacherVO
     */
    void updateFamousTeacher(FamousTeacherVO famousTeacherVO);


    /**
     * 删除
     */
    void deleteFamousTeacher(Long id);

    /**
     * 查询所有名师列表
     * @return
     */
    List<FamousTeacherDO> getList();
}
